// components/InstallComponent/Movable/Movable.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    optionList: {
      type: Array,
      value: []
    },
    pageInfo: {
      type: Object,
      value: {}
    },
    movableViewInfo: {
      type: Object,
      value: {}
    },
    
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {

    headleAdd() { //添加
      this.triggerEvent('headleAdd')
    },

    headleDelect(e) { //删除
      let {index}=e.currentTarget.dataset
      this.triggerEvent('headleDelect',index)
    },

    headleInputVal(e){ //输入值
      this.triggerEvent('headleInputVal',e)
    },

    dragStart(e){
      this.triggerEvent('dragStart',e)
    },
    dragMove(e){
      this.triggerEvent('dragMove',e)
    },
    dragEnd(){
      this.triggerEvent('dragEnd')
    }

  }
})